package com.domain;

import java.util.Date;

public class User {

	private Integer id;
	private String account;
	private String sname;
	private Integer age;
	private Date time;

	public User() {
	}

	public User(Integer id, String account, String sname, Integer age) {
		this.id = id;
		this.account = account;
		this.sname = sname;
		this.age = age;
	}

	public User(Integer id) {
		this.id = id;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getAccount() {
		return account;
	}

	public void setAccount(String account) {
		this.account = account;
	}

	public String getSname() {
		return sname;
	}

	public void setSname(String sname) {
		this.sname = sname;
	}

	public Integer getAge() {
		return age;
	}

	public void setAge(Integer age) {
		this.age = age;
	}

	public Date getTime() {
		return time;
	}

	public void setTime(Date time) {
		this.time = time;
	}

	@Override
	public String toString() {
		return "User [id=" + id + ", account=" + account + ", sname=" + sname + ", age=" + age + ", time=" + time + "]";
	}
	
}
